<template>
  <div>

    <span>{{ name }}</span>
    <button @click="add(ind)">+</button>
    <span> {{ count }} </span>
    <button @click="sec(ind)">-</button>

  </div>

</template>

<script>
  export default {
    props: ['name', 'count', 'ind'],

    methods: {
      add(index) {
        this.$emit('add1', index)
      },
      sec(index) {
        this.$emit('sss', index)
      }
    }
  }
</script>

<style>

</style>